package com.xc.erp.modules.erp.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.erp.modules.erp.domain.AjaxResult;
import com.xc.erp.modules.erp.domain.dto.LoginBody;
import com.xc.erp.modules.erp.domain.pojo.JshFunction;
import com.xc.erp.modules.erp.domain.vo.RouterVo;

import java.util.List;

/**
 *
 */
public interface JshFunctionService extends IService<JshFunction> {

    List<JshFunction> selectMenuById(Long userId);

    List<RouterVo> buildMenus(List<JshFunction> functionList);

    boolean checkIsNameExist(Long id,String name);

    Page<JshFunction> list(Integer pageSize, Integer pageNum, String name);

    void batchSetStatus(boolean status, Long[] ids);

    boolean checkIsNumberExist(Long id, String number);

    List<JshFunction> listFunction();

    List<JshFunction> selectFunctionRole(Integer roleId);
}
